package com.sky.web.data1.customer.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import com.sky.web.data1.customer.dao.CustomerDao;
import com.sky.web.data1.customer.entity.Customer;
import com.sky.web.data1.customer.service.CustomerService;

@Service
public class CustomerServiceImpl implements CustomerService{
	@Autowired
	public CustomerDao customerDao;
	@Value("${server.port}")
	private String serverPort;
	
	@Override
	public List<Customer> getCustomer(Customer customer) {
		List<Customer> list = customerDao.getCustomer(customer);
		Customer c = new Customer();
		c.setCustomerName("端口号："+serverPort);
		list.add(0, c);
		return list;
	}

	@Override
	public String getString(String desc) {
		return desc+",端口号："+serverPort;
	}

	@Override
	public String getString(String str1, String str2) {
		return str1+":"+str2+",端口号："+serverPort;
	}

}
